<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us" lang="en-us">
  <head>
    <title><?php echo $config -> getSetting("site-title") ?></title>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <link type="text/css" rel="stylesheet" href="<?php echo($themeDir); ?>/common.css" />
    <link type="text/css" rel="stylesheet" href="<?php echo($themeDir); ?>/flora/flora.all.css" />
    <link type="text/css" rel="stylesheet" href="<?php echo($themeDir); ?>/dialog.css" />
    <link type="text/css" rel="stylesheet" href="<?php echo($themeDir); ?>/mooRainbow.css" />
    
    <script src="<?php echo($themeDir); ?>/js/jquery-1.2.4b.js" type="text/javascript"></script>
    <script type="text/javascript">jQuery.noConflict();var j$=jQuery;</script>
    <script src="<?php echo($themeDir); ?>/js/ui.core.js" type="text/javascript"></script>
    <script src="<?php echo($themeDir); ?>/js/ui.draggable.js" type="text/javascript"></script>
    <script src="<?php echo($themeDir); ?>/js/ui.droppable.js" type="text/javascript"></script>
    <script src="<?php echo($themeDir); ?>/js/ui.resizable.js" type="text/javascript"></script>
    <script src="<?php echo($themeDir); ?>/js/ui.dialog.js" type="text/javascript"></script>
    <script src="<?php echo($themeDir); ?>/js/utilities.js" type="text/javascript"></script>
    <script src="<?php echo($themeDir); ?>/js/mootools-beta-1.2b2.js" type="text/javascript"></script>
    <script src="<?php echo($themeDir); ?>/js/mooRainbow.1.2b1.js" type="text/javascript"></script>
    <script src="<?php echo($themeDir); ?>/js/nowchat.dialog.js" type="text/javascript"></script>
  </head>

<body class="Body">
  <div id="wrap">
    <div id="links"> 
    <?php 
        if($authService -> isAuthenticated()) 
        {
            echo '<a href="./logout.php" title="logout">logout</a>';
            if(!$authService -> currentUserCan())
            {
                echo '<a href="./admin/" title="profile">profile</a>';
            }
            else
            {
                echo '<a href="./admin/" title="site admin">site admin</a>';
            }
        }
        else
        {
            echo '<a href="./login.php" title="login">login</a>';
        }
    ?>
        <a href="./register.php" title="register">register</a> 
        <a href="./help.php" title="help">help</a>  
        <a href="./about.php" title="about us">about us</a> 
    </div>
